package com.mayikt.zuul.handler;

import com.mayikt.zuul.handler.factory.FactoryHandler;
import com.netflix.zuul.context.RequestContext;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletResponse;


@Component
public class ResponsibilityClient {

    /**
     * 责任链调用
     */
    public void responsibility(RequestContext rc, String ipAddress, HttpServletResponse response){
        FactoryHandler.getOneHandler().service(rc,ipAddress,response);
    }
}
